UIEvent

ButtonInteraction.lua.txt

通过LuaBehaviour执行此Lua脚本,并通过Injections数组中添加一组input

Name:input
Value:InputField
    function start()
        print("lua start...")

        self:GetComponent("Button").onClick:AddListener(function()
            print("clicked, you input is '" ..input:GetComponent("InputField").text .."'")
        end)
    end

🔚

results matching ""

    No results matching ""